#ifndef TEACHDELEGATE_H
#define TEACHDELEGATE_H

#include <QObject>
#include <QStyledItemDelegate>

class TeachDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    explicit TeachDelegate(QObject *parent = nullptr);
    void paint(QPainter *painter, const QStyleOptionViewItem &option,
               const QModelIndex &index) const override;

    bool editorEvent(QEvent *event, QAbstractItemModel *model,
                     const QStyleOptionViewItem &option, const QModelIndex &index) override;
};

#endif // TEACHDELEGATE_H
